package com.jeethink.erp.warehouse.service;

import com.jeethink.common.core.domain.TreeSelect;
import com.jeethink.common.core.domain.entity.TbShop;
import com.jeethink.common.core.domain.entity.TbWarehouse;

import java.util.List;

/**
 * 仓库Service接口
 * 
 * @author ypr
 * @date 2021-05-26
 */
public interface ITbWarehouseService 
{
    /**
     * 查询仓库
     * 
     * @param warehouseId 仓库ID
     * @return 仓库
     */
    public TbWarehouse selectTbWarehouseById(Long warehouseId);

    /**
     * 查询仓库列表
     * 
     * @param tbWarehouse 仓库
     * @return 仓库集合
     */
    public List<TbWarehouse> selectTbWarehouseList(TbWarehouse tbWarehouse);

    /**
     * 新增仓库
     * 
     * @param tbWarehouse 仓库
     * @return 结果
     */
    public int insertTbWarehouse(TbWarehouse tbWarehouse);

    /**
     * 修改仓库
     * 
     * @param tbWarehouse 仓库
     * @return 结果
     */
    public int updateTbWarehouse(TbWarehouse tbWarehouse);

    /**
     * 批量删除仓库
     * 
     * @param warehouseIds 需要删除的仓库ID
     * @return 结果
     */
    public int deleteTbWarehouseByIds(Long[] warehouseIds);

    /**
     * 删除仓库信息
     * 
     * @param warehouseId 仓库ID
     * @return 结果
     */
    public int deleteTbWarehouseById(Long warehouseId);

    /**
     * 构建前端所需要下拉树结构
     *
     * @param tbWarehouse 仓库列表
     * @return 下拉树结构列表
     */
    public List<TreeSelect> buildWareHouseTreeSelect(List<TbWarehouse> tbWarehouse);

    /**
     * 构建前端所需要树结构
     *
     * @param tbWarehouse 仓库列表
     * @return 树结构列表
     */
    public List<TbWarehouse> buildWarehouseTree(List<TbWarehouse> tbWarehouse);
}
